@import "../variables";
.content-panel {
    border: none;
    .content-panel-header {
        padding: 0;
        .switch {
            margin-top: 13px;
        }
    }
    .content-panel-body {
        min-height: 0;
        padding: 0;
        .content-panel-help-accent {
            color: #ff6e40;
            font-size: 14px;
            margin: 16px 0 30px;
        }
    }
    &~.content-panel {
        margin-top: 28px;
    }
}
.p-y-0 {
    height: auto;
    line-height: 1.5;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    &.btn-link {
        font-size: 16px;
    }
}

.img-responsive {
    width: 100%;
}

.disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.6;
}
#doc-center-head {
    border-bottom: 1px solid #eee;
    height: 48px;
}        
#doc-center-head-menu, .doc-center-head-menu {
    margin-right: 16px;
    margin-top: 5px;
}
#doc-center-head-title {
    line-height: 48px;
} 
.flex-direction-row{
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;    
}
.flex-direction-column{
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;    
}
.flex-1 {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}   
#addCouponModal,#editCouponModal{
    .modal-body{
        font-size: 13px;
        color: #333;
    }
    .control-label-last{
        line-height: 38px;
    }
    .dropdown{
        width: 98px;
        padding-right: 8px;
    }
    .dropdown a[data-toggle=dropdown]{
        padding: 0 8px;
        text-align: left;
        padding-left: 16px;
        background: #fff;
        border: 1px solid #ccc;
        width: 80px;
        .caret {
            float: right;
            margin-top: 14px;
            color: #727272;
        }
        
    }
    .dropdown a[data-toggle="dropdown"]:hover{
        background: #daecc7;
    }
    .open a[data-toggle="dropdown"]{
        border: 1px solid #8bc34a;
    }
    .control-label-mid{
        padding: 0 8px;
        text-align: center;
        font-size: 12px;
    }
    .form-control, output{
        font-size: 12px;
        padding: 0 8px;
    }
    .flex-2{
        line-height: 36px;
        width:24px;
        text-align: center;
        font-size: 12px;
    }
    .flex-1{
        position: relative;
        line-height: 36px;
    }
    #startTime,#endTime{
        cursor: pointer;
    }
    .flex-direction-row{
        height: 36px;
    }
    .set-cannot-time{
        font-size:12px ;
    }
    .reduce-btn,.add-btn,.input-num{
        float: left;
        height: 30px;
        line-height: 30px;
        margin-top: 3px;
    }
    .reduce-btn{
        width: 36px;
        height: 28px;
        background: url('image/reduce.png') center no-repeat; 
        border: 1px solid #ccc;
        border-right:0 ;
        cursor: pointer;
    }
    .add-btn{
        width: 36px;
        height: 28px;
        background: url('image/add.png') center no-repeat; 
        border: 1px solid #ccc;
        border-left:0 ;
        cursor: pointer;
    }
    .input-num{
        width: 64px;
        border-radius:inherit ;
        text-align: center;
    }
    .room-type{
        .flex-3{
            position: relative;
            float: left;
            height: 30px;
            margin-right: 10px;
            line-height: 30px;
        }
    }
    .cannot-use{    
        line-height: 24px;
        color: #666;
        margin-top: 5px;
        font-size: 12px;
        max-height: 48px;
        overflow: hidden;
        text-overflow: -o-ellipsis-lastline;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .has-error #requestMoney,.has-error #requestSubtractMoney,.has-error #requestDiscountMoney{
        border-color:#ccc ;
    }
    #requestMoney,#requestSubtractMoney,#requestDiscountMoney{
        padding: 0;
        text-align: center;
        width: 60px;
    }
}
.checkbox-btn{
    display: block;
    height: 14px;
    width: 14px;
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -7px;
    cursor: pointer;
    background: url('image/unchecked-icon.png') center no-repeat; 
}
.checkbox-label{
    margin-left: 24px;
}
.checkbox-btn.active{
    background: url('image/checked-icon.png') center no-repeat; 
}
#calendar-panel{
    margin: 8px;
}
#calendar-head{
    width: 552px;
    font-size:13px ;
    border: 1px solid #cccccc;
    border-bottom: 0;
    .now-day{
        width: 208px;
        height: 46px;
        line-height: 46px;
        text-align: center;
        background: #8bc34a;
        font-size:14px ;
        color: #fff;
    }
    .flex-1{
        height: 46px;
        line-height: 46px;
        text-align: center;
        background: #E8E8E8;
        cursor: pointer;
        &:hover{
            background: #fff;
        }
        &.disabled-time {
            background: #f5f5f5;
            pointer-events: none;
            cursor:not-allowed;
            &:hover{
                background: #f5f5f5;
            }
        }        
    }
}
#calendar {
    border-left: 1px solid #cccccc;
    border-top: 1px solid #cccccc;
    overflow: hidden;
    width: 553px;
    .calendar-day {
        cursor:pointer;
        width: 78px;
        height: 56px;
        font-size: 13px;
        text-align: center;
        border-right: 1px solid #cccccc;
        float: left;
//      background: #efefef;
        background: #fff;
        border-bottom: 1px solid #cccccc;

        &:hover {
            background-color: #daecc7;
        }

        &.highlight {
            background-color: #daecc7;
        }
        &.today {
            background-color: #daecc7;

            .calendar-day-count,
            .day-text,
            .week-text {
                color: #ff6e40;
            }
        }
        &.has-festival {
            .week-text {
                color: #ff6e40;
            }
        }            
        &.select-date{
            background: url('image/forbid.png') center no-repeat; 
            background-color:#b6b6b6 ;
        }
        &.disabled-time {
            background: #f5f5f5;
            cursor:not-allowed;
        }    
        .calendar-day-text,
        .calendar-day-count {
            overflow: hidden;
            width: 100%;
            height: 22px;
            white-space: nowrap;
        }
        .week-text{
            font-size:12px ;
            display: inline-block;
            margin-top: 4px;
        }
        .calendar-day-count {
            font-size: 10px;
            color: #333333;
        }

        .day-text {
            color: #000000;
        }

        .week-text {
            padding-left: 4px;
            color: #727272;
        }
    }
}
.week-select{
    margin-bottom: 12px;
    .flex-1{
        position: relative;
    }
    .checkbox-label{
        font-size:13px ;
        margin-left: 38px;
    }
    .checkbox-btn{
        left: 14px;
    }
}
//设置不可用日期
#calendarModal{
    z-index: 10000;
    .modal-dialog{   
        width: 588px;
        top: 20%;
    }
    .modal-header-member{
        padding: 4px 16px;
        border-bottom: 1px solid #e5e5e5;    
        background-color: rgba(228, 228, 228, 1);
        .close {    
            font-size: 20px;
            text-shadow: none;
            color: #505050;
            opacity: 1;
            min-width: 0;
            padding: 0;
            width: 32px;
            height: 32px;
            line-height: 32px;
            -webkit-border-radius: 50%;
            border-radius: 50%;
        }
    }
    .modal-title{
        font-size: 14px;
        line-height: 32px;
    }
    .modal-confirm .modal-footer{
        border-top: 1px solid #e5e5e5;
    }
}
.datepicker .fi-arrow-right{
    display: block;
    width: 100%;
    height: 100%;
    background: url('/Public/dist/Home/image/left.png') center no-repeat; 
    background-size:12px ;
}
.datepicker .fi-arrow-left{
    display: block;
    width: 100%;
    height: 100%;
    background: url('/Public/dist/Home/image/right.png') center no-repeat; 
    background-size:12px ;
}
.datepicker thead tr:first-child th.fi-arrow-right:hover{
    background: url('/Public/dist/Home/image/left.png') center no-repeat; 
    background-size:12px ;
}
.datepicker thead tr:first-child th.fi-arrow-left:hover{
    background: url('/Public/dist/Home/image/right.png') center no-repeat; 
    background-size:12px ;
}
.datepicker table tr td span{
   height: 24px;
   line-height: 24px;
}

#couponListContainer{
    padding: 30px 0 100px 16px;
    overflow: hidden;
    .couponList{
        width: 364px;
        height: 124px;
        border: 1px solid #eee;
        margin-right: 30px;
        float: left;
        margin-bottom: 30px;
        position: relative;
        cursor: pointer;
        .sign-top{
            position: absolute;
            left: 0;
            top: 0;
            background: #8bc34a;
            width: 60px;
            height: 26px;
            text-align: center;
            line-height: 26px;
            font-size:10px ;
            color: #fff;
        }
        .figure{
            position: absolute;
            left: 0;
            top: 0;
            height: 124px;
            width: 132px;
            text-align: center;
            .figure-coupon,.discount-coupon{
                color:#8bc34a;
                font-size:16px ;
                height: 32px;
                line-height: 32px;
                margin-top: 34px;
                span{
                    font-size:42px ;
                }
            }
            .type-coupon{
                font-size:14px ;
                margin-top: 16px;
                color: #666;
            }
        }
        .coupon-content{
            position: absolute;
            right: 0;
            top: 0;
            height: 124px;
            width: 232px;
            p{
                height: 16px;
                line-height: 16px;
            }
            .coupon-desc{
                font-size:16px ;
                margin-top: 30px;
                width: 232px; 
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
            }
            .coupon-requirement{
                font-size:14px ;
                margin-top: 12px;
            }
            .coupon-time{
                font-size:12px ;
                margin-top: 9px;
                color: #666;
            }
        }
        .coupon-edit{
            position: absolute;
            right: 24px;
            bottom: 16px;
            font-size: 12px;
            color: #ff6e40;
        }
        .not-applicable{
            position: absolute;
            left: -1px;
            top: 124px;
            border: 1px solid #8bc34a;
            width: 332px;
            font-size: 12px;
            color: #666;
            padding: 12px 16px;
            display: none;
            background: #fff;
            z-index: 10;
            .not-room{
                line-height: 24px;
                overflow: hidden;
                text-overflow: -o-ellipsis-lastline;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;    
                width: 332px;            
            }
        }
        .coupon-delete{
            display: none;
            width: 30px;
            height: 30px;
            position: absolute;
            right: -15px;
            top: -15px;
            background: url('image/remove.png') center no-repeat;
            background-color:#fff ;
        }
        &:hover{
            border-color: #8bc34a;
            .not-applicable{
                display: block;
            }
            .coupon-delete{
                display: block;
            }
        }
    }
    .couponList.overdue{
        .figure-coupon,.type-coupon,.coupon-requirement,.coupon-desc,.not-applicable,.coupon-time{
            color: #999;
        }
        .sign-top{
            background: #ccc;
        }
    }
}
#editCouponModal{
    .coupon-type{
        margin-right: 20px;
    }
    .coupon-type,.request-money{
        height: 36px;
        line-height: 36px;
        float: left;
    }
}
#recordCouponModal{
    .modal-dialog {
        width: 816px;
    }
    .modal-body{
        padding: 0;
        font-size:12px;
    }
    .content-panel-body .content-panel-table tr th {
        border: 0;
        color: #999;
        font-weight: 400;
        background: #F5F6FA;
        text-align: center;
        padding: 10px 8px;
    }
    #recordListBodyEmpty {
        text-align: center;
        line-height: 200px;
    }
    #recordListBody{
        max-height: 646px;
        min-height: 200px;
        overflow-y: auto;
    }
    .record-content{
        width: 100%;
        border-top:1px solid #e5e5e5 ;
        overflow: hidden;
        .list{
            border: 0;
            text-align: center;
            background: #fff;
            padding: 10px 8px;
        }
    }
}
#recordCouponModal .record-content:last-of-type{
        border-bottom:1px solid #e5e5e5 ;
}
